package com.wl.api.service.system;

import com.baomidou.mybatisplus.service.IService;
import com.wl.api.common.utils.PageInfo;
import com.wl.api.dto.system.SecurityRoleDTO;
import com.wl.api.model.system.SecurityRole;

/**
 *
 * SecurityRole 表数据服务层接口
 *
 */
public interface ISecurityRoleService extends IService<SecurityRole> {


	 int createRoleAndPermission(SecurityRoleDTO role);
	 
	 int updateRoleAndPermission(SecurityRoleDTO role) throws Exception;
	 
	 PageInfo<SecurityRoleDTO> getRoleListPage(SecurityRoleDTO param); 
	 
	 SecurityRoleDTO getRolePermissionDetail(long roleId);
	 
	 boolean delRole(long roleId);
	 
	 String getRoleNameByUserID(Long userID);
}